<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::post('com/api/zh/boutique', 'zh/boutique');
Route::post('com/api/zh/isadmin', 'zh/isadmin');
Route::post('com/api/zh/forceCheckCode', 'zh/forceCheckCode');
Route::post('com/api/zh/checkCode', 'zh/checkCode');

Route::post('com/api/login', 'api/login');
Route::post('com/files/upload', 'com/file_upload');
Route::post('com/files/list_folder', 'com/list_folder');
Route::post('com/sharing/create_shared_link', 'com/create_shared_link');


Route::get("com/files/download","com/download_file");
Route::post('user/login', 'user/login');
Route::get('user/zone/:uid', 'user/zone');
Route::post('user/my_world_list/:uid', 'user/my_world_list');
Route::post('user/my_mod_list/:uid', 'user/my_mod_list');
Route::post('user/my_bbs_list/:uid', 'user/my_bbs_list');

Route::get('down/:id', 'down/down');
Route::get('fileload/:id', 'fileload/down');

Route::post('bbs/reply', 'bbs/reply');
Route::post('bbs/del', 'bbs/del');
Route::post('bbs/top/:id', 'bbs/top/:id');
Route::post('bbs/add', 'bbs/add');
Route::post('bbs/edit', 'bbs/edit');
Route::get('bbs/del_reply/:id', 'bbs/del_reply');
Route::post('bbs/list/:id', 'bbs/list');
Route::get('bbs/item/:id', 'bbs/item');
Route::get('bbs/reply_list/:id', 'bbs/reply_list');
Route::get('bbs/reply_to_list/:id', 'bbs/reply_to_list');
Route::get('bbs/good/:id', 'bbs/good');
Route::get('bbs/bad/:id','bbs/bad');
Route::get('bbs/reply_good/:id','bbs/reply_good');
Route::get('bbs/reply_bad/:id','bbs/reply_bad');

Route::get('mod/item/:id', 'mod/item');
Route::get('mod/delete/:id', 'mod/delete');
Route::post('mod/file_list/:id', 'mod/file_list');
Route::get('mod/delete_file/:id', 'mod/delete_file');
Route::post('mod/server_list/:id', 'mod/server_list');
Route::get('mod/delete_server/:id', 'mod/delete_server');
Route::post('mod/version_list/:id', 'mod/version_list');
